package br.quest.models;

import java.util.ArrayList;
import java.util.List;

public class Route {

    private String name;
    private List<Waypoint> waypoints;
    
    public Route(String name) {
        this.name = name;
        waypoints = new ArrayList<Waypoint>();
    }
    
    public List<Waypoint> getWaypoints() {
        return waypoints;
    }
    
    public void setWaypoints(List<Waypoint> waypoints) {
        this.waypoints = waypoints;
    }
    
    public void addWaypoint(Waypoint waypoint) {
        waypoints.add(waypoint);
    }
    
    public Waypoint getWaypoint(int index) {
        return waypoints.get(index);
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public int getWaypointCount() {
        return waypoints.size();
    }
    
}
